﻿<%@ Page Language="C#" MasterPageFile="~/MasterClient.Master" AutoEventWireup="true" CodeFile="frm_TraineeFamilyInfo.aspx.cs" Inherits="frm_TraineeFamilyInfo" Title="Untitled Page" %>
  <asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
  </asp:Content>
  <asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <script type="text/javascript" src="Js/jquery.min.js"></script>
    <script type="text/javascript" src="Js/jquery.alphanumeric.pack.js"></script>
    <script type="text/javascript" >
      $(document).ready(function(){
      $('#ctl00_ContentPlaceHolder1_txt_電話番号').numeric();
      $('#ctl00_ContentPlaceHolder1_txt_外国人登録番号').numeric();
      });

    </script>
    <asp:UpdatePanel id="UpdatePanel1" runat="server">
      <contenttemplate>
        <div class="maindiv">
        <DIV id="div_Body" runat="server">
          <%--<DIV class="titleHeader_VN">
            <asp:Label id="lbl_titleHeader" runat="server" Text="THÔNG TIN GIA ĐÌNH"></asp:Label>
          </DIV>
          <DIV class="titlename_VN">
            <asp:Label id="lbl_NameHeader" runat="server" Text="nameHeader"></asp:Label>
          </DIV>--%>
          <DIV>
            <DIV class="Header1">
              <SPAN>＊: Nhập bắt buộc các mục có dấu *.</SPAN>
            </DIV>
            <DIV class="Header3">
              <SPAN>※Hãy nhập thông tin gia đình từ thế hệ thứ 2.</SPAN>
              <BR />
              <SPAN>※Nhấp vào nút Nhập mới để nhập thông tin người kế tiếp.</SPAN>
            </DIV>
            <DIV>&nbsp;</DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Mối quan hệ :</SPAN>
              <asp:DropDownList id="ddl_続柄コード" runat="server" Width="156px" DataValueField="コード" DataTextField="氏名">
                <asp:ListItem Value="-1" selected="true">Lựa Chọn </asp:ListItem>
              </asp:DropDownList>
              <SPAN class="required-field">*</SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Tên :</SPAN>
              <asp:TextBox id="txt_氏名" runat="server" Width="300px"></asp:TextBox>
              <SPAN class="required-field">*</SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Giới tính :</SPAN>
              <asp:DropDownList id="ddl_性別" runat="server" Width="156px">
                <asp:ListItem Value="-1" selected="true">Lựa Chọn </asp:ListItem>
                <asp:ListItem Value="0">Nam</asp:ListItem>
                <asp:ListItem Value="1">Nữ</asp:ListItem>
              </asp:DropDownList>
              <SPAN class="required-field">*</SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Ngày sinh :</SPAN>
              <asp:DropDownList id="ddl_生年月日d" runat="server" Width="77px">
                <asp:ListItem Value="-1" selected="true">Ngày</asp:ListItem>
                <asp:ListItem Value="1">1</asp:ListItem>
                <asp:ListItem Value="2">2</asp:ListItem>
                <asp:ListItem Value="3">3</asp:ListItem>
                <asp:ListItem Value="4">4</asp:ListItem>
                <asp:ListItem Value="5">5</asp:ListItem>
                <asp:ListItem Value="6">6</asp:ListItem>
                <asp:ListItem Value="7">7</asp:ListItem>
                <asp:ListItem Value="8">8</asp:ListItem>
                <asp:ListItem Value="9">9</asp:ListItem>
                <asp:ListItem Value="10">10</asp:ListItem>
                <asp:ListItem Value="11">11</asp:ListItem>
                <asp:ListItem Value="12">12</asp:ListItem>
                <asp:ListItem Value="13">13</asp:ListItem>
                <asp:ListItem Value="14">14</asp:ListItem>
                <asp:ListItem Value="15">15</asp:ListItem>
                <asp:ListItem Value="16">16</asp:ListItem>
                <asp:ListItem Value="17">17</asp:ListItem>
                <asp:ListItem Value="18">18</asp:ListItem>
                <asp:ListItem Value="19">19</asp:ListItem>
                <asp:ListItem Value="20">20</asp:ListItem>
                <asp:ListItem Value="21">21</asp:ListItem>
                <asp:ListItem Value="22">22</asp:ListItem>
                <asp:ListItem Value="23">23</asp:ListItem>
                <asp:ListItem Value="24">24</asp:ListItem>
                <asp:ListItem Value="25">25</asp:ListItem>
                <asp:ListItem Value="26">26</asp:ListItem>
                <asp:ListItem Value="27">27</asp:ListItem>
                <asp:ListItem Value="28">28</asp:ListItem>
                <asp:ListItem Value="29">29</asp:ListItem>
                <asp:ListItem Value="30">30</asp:ListItem>
                <asp:ListItem Value="31">31</asp:ListItem>
              </asp:DropDownList>
              <asp:DropDownList id="ddl_生年月日m" runat="server" Width="77px">
                <asp:ListItem Value="-1" selected="true">Th&#225;ng</asp:ListItem>
                <asp:ListItem Value="1">1</asp:ListItem>
                <asp:ListItem Value="2">2</asp:ListItem>
                <asp:ListItem Value="3">3</asp:ListItem>
                <asp:ListItem Value="4">4</asp:ListItem>
                <asp:ListItem Value="5">5</asp:ListItem>
                <asp:ListItem Value="6">6</asp:ListItem>
                <asp:ListItem Value="7">7</asp:ListItem>
                <asp:ListItem Value="8">8</asp:ListItem>
                <asp:ListItem Value="9">9</asp:ListItem>
                <asp:ListItem Value="10">10</asp:ListItem>
                <asp:ListItem Value="11">11</asp:ListItem>
                <asp:ListItem Value="12">12</asp:ListItem>
              </asp:DropDownList>
              <asp:DropDownList id="ddl_生年月日y" runat="server" Width="68px">
                <asp:ListItem Value="-1" selected="true">Năm</asp:ListItem>
              </asp:DropDownList>
              <SPAN class="required-field">*</SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Quốc tịch :</SPAN>
              <asp:DropDownList id="ddl_国籍" runat="server" Width="156px" DataValueField="ID" DataTextField="国籍名">
                <asp:ListItem Value="-1" selected="true">Lựa Chọn </asp:ListItem>
              </asp:DropDownList>
              <SPAN class="required-field">*</SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Tình trạng :</SPAN>
              <asp:DropDownList id="ddl_同居区分" runat="server" Width="156px">
                <asp:ListItem Value="-1" selected="true">Lựa Chọn </asp:ListItem>
                <asp:ListItem Value="0">Sống chung</asp:ListItem>
                <asp:ListItem Value="1">Sống 1 m&#236;nh</asp:ListItem>
              </asp:DropDownList>
              <SPAN class="required-field">*</SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Nơi ở hiện tại：</SPAN>
              <asp:TextBox id="txt_住所１" runat="server" Width="300px" Height="60px" Rows="5" TextMode="MultiLine"></asp:TextBox>
              <SPAN class="required-field">*</SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Nơi ở khác：</SPAN>
              <asp:TextBox id="txt_住所２" runat="server" Width="300px" Height="60px" Rows="5" TextMode="MultiLine"></asp:TextBox>
              <SPAN class="required-field"></SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Quốc gia cư trú:</SPAN>
              <asp:DropDownList id="ddl_住居国情報" runat="server" Width="156px" DataValueField="id" DataTextField="国籍名">

              </asp:DropDownList>
              <SPAN class="required-field">*</SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Điện thoại :</SPAN>
              <asp:TextBox id="txt_電話番号" runat="server" Width="150px"></asp:TextBox>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Email :</SPAN>
              <asp:TextBox id="txt_Email" runat="server" Width="150px"></asp:TextBox>
              <SPAN class="required-field"></SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Nơi làm việc/Học tập :</SPAN>
              <asp:TextBox id="txt_勤務先通学先" runat="server" Width="150px"></asp:TextBox>
              <SPAN class="required-field"></SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Nghề nghiệp :</SPAN>
              <asp:TextBox id="txt_職業名" runat="server" Width="150px"></asp:TextBox>
              <SPAN class="required-field"></SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">Số đăng ký người nước ngoài :</SPAN>
              <asp:TextBox id="txt_外国人登録番号" runat="server" Width="150px"></asp:TextBox>
              <SPAN class="required-field"></SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <SPAN class="detail-admin-label">&nbsp;</SPAN>
              <asp:Button id="btn_登録" onclick="btn_登録_Click" runat="server" Text="Nhập mới" CssClass="btn"></asp:Button> 
             &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
              <asp:Button id="btn_リセット" onclick="btn_リセット_Click" runat="server" Text="Nhập lại" CssClass="btn"></asp:Button>
            </DIV>
            <DIV class="Header2">
              <SPAN style="COLOR: gray">＊: Thông tin gia đình</SPAN>
            </DIV>
            <DIV style="MARGIN: 10px 50px" class="detail-admin-row">
            <asp:HiddenField id="hd_pageCount" runat="server"></asp:HiddenField>
              <asp:GridView id="grv" runat="server" Width="100%" Height="40px" CssClass="grid" BackColor="White" BorderWidth="1" BorderStyle="Solid"  
            BorderColor="Black"
             CellPadding="4" ForeColor="#555555" GridLines="Vertical"  AutoGenerateColumns="False" ShowFooter="True" 
                            OnRowCommand="grv_RowCommand" OnDataBound="grv_DataBound" EmptyDataText="trong" OnRowCreated="grv_RowCreated" OnSorting="grv_Sorting" 
                            AllowSorting="True" >
            <RowStyle BackColor="#FFFFCC" BorderWidth="1" BorderStyle="Solid"  BorderColor="Black"/>
            <FooterStyle BackColor="#CCCC99" />
            <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
            <HeaderStyle Height="40px" BackColor="#808080" Font-Bold="True" ForeColor="White"/>
            <AlternatingRowStyle BackColor="White" />
            
           <SelectedRowStyle BackColor="PaleGoldenrod" ForeColor="DarkSlateBlue" /><Columns>
                  <asp:TemplateField HeaderText="Mối quan hệ" SortExpression="続柄コード">
                    <ItemTemplate>
                      <asp:LinkButton id="HyperLink1" runat="server" Text='<%# Eval("続柄Name") %>' CommandArgument='<%# Eval("ID") %>' CommandName="view" ></asp:LinkButton>
                    </ItemTemplate>
                    <FooterTemplate>
                      <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/Images/controls/first copy.gif"  CommandArgument="First" CommandName="Page" />
                      <asp:ImageButton ID="ImageButton2" runat="server"   ImageUrl="~/Images/controls/last copy.gif" CommandArgument="Prev" CommandName="Page"/>

                      <asp:DropDownList ID="ddlPages" runat="server" AutoPostBack="True" OnSelectedIndexChanged="ddlPages_SelectedIndexChanged"></asp:DropDownList>
                      /
                      <asp:Label ID="lblPageCount" runat="server"></asp:Label>
                      <asp:ImageButton ID="ImageButton3" runat="server" ImageUrl="~/Images/controls/next copy.gif"   CommandArgument="Next" CommandName="Page" />
                      <asp:ImageButton ID="ImageButton4" runat="server" ImageUrl="~/Images/controls/previous copy.gif"  CommandArgument="Last" CommandName="Page"/>
                    </FooterTemplate>
                    <FooterStyle HorizontalAlign="center" VerticalAlign="Middle"  BackColor="#808080"></FooterStyle>
                     
               

                  </asp:TemplateField>
                  <asp:BoundField DataField="氏名" HeaderText="Tên" SortExpression="氏名"/>
                  <asp:BoundField DataField="同居区分Name" HeaderText="Tình trạng" SortExpression="同居区分" />
                  <asp:BoundField DataField="電話番号" HeaderText="Điện thoại" SortExpression="電話番号" />
                  <asp:TemplateField  HeaderText="Xóa">
                    <ItemStyle HorizontalAlign ="Center" Width ="50px" />
                    <ItemTemplate>
                      <asp:ImageButton ID="ImageButton5" runat="server" ImageUrl="~/Images/Delete.gif" Width="15px" Height="15px" CausesValidation="false" CommandName="del" 
                                       CommandArgument ='<%# Eval("ID") %>'  OnClientClick="return confirm('Bạn thật sự muốn xóa quá thông tin này?')" />

                        </ItemTemplate>
                    
                  </asp:TemplateField>
                </Columns>
                
              </asp:GridView>
            </DIV>
            <DIV style="MARGIN-BOTTOM: 20px" class="Header3">
              <SPAN>
                ※Nhấp vào cột đầu tiên để chỉnh sửa thông tin gia đình.<BR />
              </SPAN>
              <SPAN>※Vui lòng nhập thông tin liên lạc để hoàn tất quá trình cung cấp thông tin trước khi nhập học.</SPAN>
              <BR />
              <SPAN>※Trường hợp nếu không nhập thông tin liên lạc thì thông tin về gia đình sẽ xem như chưa được cung cấp.</SPAN>
            </DIV>
            <DIV class="detail-admin-row">
              <DIV class="btn_back"></DIV>
              <DIV class="btn_next">
                <asp:Button id="btn_次" onclick="btn_次_Click" runat="server" Text="Thông tin liên lạc" CssClass="btn"></asp:Button>
              </DIV>
            </DIV>
          </DIV>
        </DIV>
        </div>
      </contenttemplate>
    </asp:UpdatePanel>
  </asp:Content>

